package com.atguigu.educms.mapper;

import com.atguigu.educms.entity.CmsAd;
import com.atguigu.educms.entity.Vo.AdVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import feign.Param;

import java.util.List;

/**
 * @author 阿卓
 * @version 1.0
 * @date 2021/2/24 0024 10:51
 */
public interface CmsAdMapper extends BaseMapper<CmsAd> {

    List<AdVo> selectPageByQueryWrapper(
            Page<AdVo> pageParam,
            @Param(Constants.WRAPPER) QueryWrapper<AdVo> queryWrapper);
}
